/*
 * ============================================================================
 * = COPYRIGHT
 *          PAX Computer Technology(Shenzhen) Co., Ltd. PROPRIETARY INFORMATION
 *   This software is supplied under the terms of a license agreement or nondisclosure
 *   agreement with PAX Computer Technology(Shenzhen) Co., Ltd. and may not be copied or
 *   disclosed except in accordance with the terms in that agreement.
 *     Copyright (C) 2021 PAX Computer Technology(Shenzhen) Co., Ltd. All rights reserved.
 * ============================================================================
 */

import 'auto_data_source_common.dart';
import 'package:pos_link/auto_pigeon/poslink_sdk_batch.dart';
import 'package:pos_link/auto_data_source/auto_query.dart';
class BatchRspData {
  static List<Map> initSourceData() {
    return BatchRspData.batchClearData();
  }
  static List<Map> forceBatchCloseData() {
      return [
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'responseCode',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-responseCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'responseMessage',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-responseMessage',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kGroupArrowOpen: true,
                kName: 'hostInformation',
                kValue: '',
                kID: 'Batch_Response_ForceBatchCloseResponse-hostInformation',
                kType: DataItemType.Group,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostResponseCode',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-hostInformation_hostResponseCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostResponseMessage',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-hostInformation_hostResponseMessage',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'authorizationCode',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-hostInformation_authorizationCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostReferenceNumber',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-hostInformation_hostReferenceNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'traceNumber',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-hostInformation_traceNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'batchNumber',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-hostInformation_batchNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'transactionIdentifier',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-hostInformation_transactionIdentifier',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'gatewayTransactionId',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-hostInformation_gatewayTransactionId',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostDetailedMessage',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-hostInformation_hostDetailedMessage',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'transactionIntegrityClass',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-hostInformation_transactionIntegrityClass',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'retrievalReferenceNumber',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-hostInformation_retrievalReferenceNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'issuerResponseCode',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-hostInformation_issuerResponseCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'paymentAccountReferenceId',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-hostInformation_paymentAccountReferenceId',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'lineNumber',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-lineNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'linesMessage',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-linesMessage',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'timeStamp',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-timeStamp',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'tid',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-tid',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'mid',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-mid',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'failedTransactionNumber',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-failedTransactionNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'failedCount',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-failedCount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'safFailedCount',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-safFailedCount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'safFailedTotal',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-safFailedTotal',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kGroupArrowOpen: true,
                kName: 'torInformation',
                kValue: '',
                kID: 'Batch_Response_ForceBatchCloseResponse-torInformation',
                kType: DataItemType.Group,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'recordType',
                kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_recordType',
                kMenuID: 'Batch_Response_ForceBatchCloseResponse-torInformation_recordType_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchTorRecordType.NotSet,
                kData: [
                  {
                    kData: BatchTorRecordType.NotSet,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_recordType_NotSet',
                  },
                  {
                    kData: BatchTorRecordType.ReversalRecord,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_recordType_ReversalRecord',
                  },
                  {
                    kData: BatchTorRecordType.EmvSecondGacReversal,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_recordType_EmvSecondGacReversal',
                  },
                ],
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'reversalTimeStamp',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_reversalTimeStamp',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostResponseCode',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_hostResponseCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostResponseMessage',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_hostResponseMessage',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostReferenceNumber',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_hostReferenceNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'gatewayTransactionId',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_gatewayTransactionId',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalAmount',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalAmount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'maskedPan',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_maskedPan',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'batchNumber',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_batchNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'reversalAuthorizationCode',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_reversalAuthorizationCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalTransactionType',
                kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType',
                kMenuID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchTransactionType.NotSet,
                kData: [
                  {
                    kData: BatchTransactionType.NotSet,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_NotSet',
                  },
                  {
                    kData: BatchTransactionType.Unknown,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Unknown',
                  },
                  {
                    kData: BatchTransactionType.Sale,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Sale',
                  },
                  {
                    kData: BatchTransactionType.Return,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Return',
                  },
                  {
                    kData: BatchTransactionType.Authorization,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Authorization',
                  },
                  {
                    kData: BatchTransactionType.PostAuthorization,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_PostAuthorization',
                  },
                  {
                    kData: BatchTransactionType.ForceAuthorization,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_ForceAuthorization',
                  },
                  {
                    kData: BatchTransactionType.Adjust,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Adjust',
                  },
                  {
                    kData: BatchTransactionType.Withdrawal,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Withdrawal',
                  },
                  {
                    kData: BatchTransactionType.Activate,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Activate',
                  },
                  {
                    kData: BatchTransactionType.Issue,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Issue',
                  },
                  {
                    kData: BatchTransactionType.Reload,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Reload',
                  },
                  {
                    kData: BatchTransactionType.Cashout,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Cashout',
                  },
                  {
                    kData: BatchTransactionType.Deactivate,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Deactivate',
                  },
                  {
                    kData: BatchTransactionType.Replace,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Replace',
                  },
                  {
                    kData: BatchTransactionType.Merge,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Merge',
                  },
                  {
                    kData: BatchTransactionType.ReportLost,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_ReportLost',
                  },
                  {
                    kData: BatchTransactionType.Void,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Void',
                  },
                  {
                    kData: BatchTransactionType.VoidSale,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_VoidSale',
                  },
                  {
                    kData: BatchTransactionType.VoidReturn,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_VoidReturn',
                  },
                  {
                    kData: BatchTransactionType.VoidAuthorization,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_VoidAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidPostAuthorization,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_VoidPostAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidForceAuthorization,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_VoidForceAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidWithdrawal,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_VoidWithdrawal',
                  },
                  {
                    kData: BatchTransactionType.Inquiry,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Inquiry',
                  },
                  {
                    kData: BatchTransactionType.Verify,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Verify',
                  },
                  {
                    kData: BatchTransactionType.Reactivate,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Reactivate',
                  },
                  {
                    kData: BatchTransactionType.ForcedIssue,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_ForcedIssue',
                  },
                  {
                    kData: BatchTransactionType.ForcedAdd,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_ForcedAdd',
                  },
                  {
                    kData: BatchTransactionType.Unload,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Unload',
                  },
                  {
                    kData: BatchTransactionType.Renew,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Renew',
                  },
                  {
                    kData: BatchTransactionType.GetConvertDetail,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_GetConvertDetail',
                  },
                  {
                    kData: BatchTransactionType.Convert,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Convert',
                  },
                  {
                    kData: BatchTransactionType.Tokenize,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Tokenize',
                  },
                  {
                    kData: BatchTransactionType.IncrementalAuthorization,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_IncrementalAuthorization',
                  },
                  {
                    kData: BatchTransactionType.BalanceWithLock,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_BalanceWithLock',
                  },
                  {
                    kData: BatchTransactionType.RedemptionWithUnlock,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_RedemptionWithUnlock',
                  },
                  {
                    kData: BatchTransactionType.Rewards,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Rewards',
                  },
                  {
                    kData: BatchTransactionType.Reenter,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Reenter',
                  },
                  {
                    kData: BatchTransactionType.TransactionAdjustment,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_TransactionAdjustment',
                  },
                  {
                    kData: BatchTransactionType.Transfer,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Transfer',
                  },
                  {
                    kData: BatchTransactionType.Finalize,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Finalize',
                  },
                  {
                    kData: BatchTransactionType.Deposit,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Deposit',
                  },
                  {
                    kData: BatchTransactionType.AccountPayment,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_AccountPayment',
                  },
                  {
                    kData: BatchTransactionType.Reversal,
                    kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType_Reversal',
                  },
                ],
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalTransactionDateTime',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionDateTime',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalTransactionAuthorizationCode',
                kValue: ' ',
                kID: 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionAuthorizationCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
           ];
  }

   static void parseRspBatchForceBatchCloseResponse(BatchForceBatchCloseResponse rsp, List<Map> rspDataSource) {
      rspDataSource.forEach((element) {
          DataItemType itemType = element[kType];
          String id = element[kID];
          switch (itemType) {
              case DataItemType.CellInput:
                element[kValue] = BatchRspData._parseBatchForceBatchCloseResponse(id, rsp);
                break;
              case DataItemType.Group:
                if (element[kBitmapEnable] != null) {
                    element[kBitmapEnable] = true;
                    element[kGroupArrowOpen] = true;
                }
                break;
              case DataItemType.ModelList:
                List<dynamic> map = BatchRspData._parseBatchForceBatchCloseResponse(id, rsp) ?? [];
                element[kData] = ResponseListModelQuery.query(id, map);
                break;
              case DataItemType.Menu:
                element[kValue] = BatchRspData._parseBatchForceBatchCloseResponse(id, rsp);
                break;
              case DataItemType.StringList:
                List<String> tempData = [];
                List<String?> resData = BatchRspData._parseBatchForceBatchCloseResponse(id, rsp) ?? [];
                for (int i = 0; i < resData.length; i++) {
                  String str = resData[i]!;
                  tempData.add(str);
                }
                element[kData] = tempData;
                break;
            case DataItemType.Boolen:
                element[kValue] = BatchRspData._parseBatchForceBatchCloseResponse(id, rsp);
                element[kShow] = true;
                break;
              default:
                break;
           }
        });
  }


   static dynamic _parseBatchForceBatchCloseResponse(String id, BatchForceBatchCloseResponse rsp) {
      dynamic result;
      switch (id) {
         case 'Batch_Response_ForceBatchCloseResponse-responseCode':
             result = rsp.responseCode;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-responseMessage':
             result = rsp.responseMessage;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-hostInformation':
             result = rsp.hostInformation;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-hostInformation_hostResponseCode':
             result = rsp.hostInformation?.hostResponseCode;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-hostInformation_hostResponseMessage':
             result = rsp.hostInformation?.hostResponseMessage;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-hostInformation_authorizationCode':
             result = rsp.hostInformation?.authorizationCode;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-hostInformation_hostReferenceNumber':
             result = rsp.hostInformation?.hostReferenceNumber;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-hostInformation_traceNumber':
             result = rsp.hostInformation?.traceNumber;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-hostInformation_batchNumber':
             result = rsp.hostInformation?.batchNumber;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-hostInformation_transactionIdentifier':
             result = rsp.hostInformation?.transactionIdentifier;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-hostInformation_gatewayTransactionId':
             result = rsp.hostInformation?.gatewayTransactionId;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-hostInformation_hostDetailedMessage':
             result = rsp.hostInformation?.hostDetailedMessage;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-hostInformation_transactionIntegrityClass':
             result = rsp.hostInformation?.transactionIntegrityClass;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-hostInformation_retrievalReferenceNumber':
             result = rsp.hostInformation?.retrievalReferenceNumber;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-hostInformation_issuerResponseCode':
             result = rsp.hostInformation?.issuerResponseCode;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-hostInformation_paymentAccountReferenceId':
             result = rsp.hostInformation?.paymentAccountReferenceId;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-lineNumber':
             result = rsp.lineNumber;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-linesMessage':
             result = rsp.linesMessage;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-timeStamp':
             result = rsp.timeStamp;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-tid':
             result = rsp.tid;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-mid':
             result = rsp.mid;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-failedTransactionNumber':
             result = rsp.failedTransactionNumber;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-failedCount':
             result = rsp.failedCount;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-safFailedCount':
             result = rsp.safFailedCount;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-safFailedTotal':
             result = rsp.safFailedTotal;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-torInformation':
             result = rsp.torInformation;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-torInformation_recordType':
             result = rsp.torInformation?.recordType;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-torInformation_reversalTimeStamp':
             result = rsp.torInformation?.reversalTimeStamp;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-torInformation_hostResponseCode':
             result = rsp.torInformation?.hostResponseCode;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-torInformation_hostResponseMessage':
             result = rsp.torInformation?.hostResponseMessage;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-torInformation_hostReferenceNumber':
             result = rsp.torInformation?.hostReferenceNumber;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-torInformation_gatewayTransactionId':
             result = rsp.torInformation?.gatewayTransactionId;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-torInformation_originalAmount':
             result = rsp.torInformation?.originalAmount;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-torInformation_maskedPan':
             result = rsp.torInformation?.maskedPan;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-torInformation_batchNumber':
             result = rsp.torInformation?.batchNumber;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-torInformation_reversalAuthorizationCode':
             result = rsp.torInformation?.reversalAuthorizationCode;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionType':
             result = rsp.torInformation?.originalTransactionType;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionDateTime':
             result = rsp.torInformation?.originalTransactionDateTime;
             break;
         case 'Batch_Response_ForceBatchCloseResponse-torInformation_originalTransactionAuthorizationCode':
             result = rsp.torInformation?.originalTransactionAuthorizationCode;
             break;
         default:
             break;
     }
     return result;
 }

  static List<Map> deleteSafFileData() {
      return [
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'responseCode',
                kValue: ' ',
                kID: 'Batch_Response_DeleteSafFileResponse-responseCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'responseMessage',
                kValue: ' ',
                kID: 'Batch_Response_DeleteSafFileResponse-responseMessage',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'safDeletedCount',
                kValue: ' ',
                kID: 'Batch_Response_DeleteSafFileResponse-safDeletedCount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kGroupArrowOpen: true,
                kName: 'torInformation',
                kValue: '',
                kID: 'Batch_Response_DeleteSafFileResponse-torInformation',
                kType: DataItemType.Group,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'recordType',
                kID: 'Batch_Response_DeleteSafFileResponse-torInformation_recordType',
                kMenuID: 'Batch_Response_DeleteSafFileResponse-torInformation_recordType_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchTorRecordType.NotSet,
                kData: [
                  {
                    kData: BatchTorRecordType.NotSet,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_recordType_NotSet',
                  },
                  {
                    kData: BatchTorRecordType.ReversalRecord,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_recordType_ReversalRecord',
                  },
                  {
                    kData: BatchTorRecordType.EmvSecondGacReversal,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_recordType_EmvSecondGacReversal',
                  },
                ],
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'reversalTimeStamp',
                kValue: ' ',
                kID: 'Batch_Response_DeleteSafFileResponse-torInformation_reversalTimeStamp',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostResponseCode',
                kValue: ' ',
                kID: 'Batch_Response_DeleteSafFileResponse-torInformation_hostResponseCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostResponseMessage',
                kValue: ' ',
                kID: 'Batch_Response_DeleteSafFileResponse-torInformation_hostResponseMessage',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostReferenceNumber',
                kValue: ' ',
                kID: 'Batch_Response_DeleteSafFileResponse-torInformation_hostReferenceNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'gatewayTransactionId',
                kValue: ' ',
                kID: 'Batch_Response_DeleteSafFileResponse-torInformation_gatewayTransactionId',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalAmount',
                kValue: ' ',
                kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalAmount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'maskedPan',
                kValue: ' ',
                kID: 'Batch_Response_DeleteSafFileResponse-torInformation_maskedPan',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'batchNumber',
                kValue: ' ',
                kID: 'Batch_Response_DeleteSafFileResponse-torInformation_batchNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'reversalAuthorizationCode',
                kValue: ' ',
                kID: 'Batch_Response_DeleteSafFileResponse-torInformation_reversalAuthorizationCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalTransactionType',
                kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType',
                kMenuID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchTransactionType.NotSet,
                kData: [
                  {
                    kData: BatchTransactionType.NotSet,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_NotSet',
                  },
                  {
                    kData: BatchTransactionType.Unknown,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Unknown',
                  },
                  {
                    kData: BatchTransactionType.Sale,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Sale',
                  },
                  {
                    kData: BatchTransactionType.Return,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Return',
                  },
                  {
                    kData: BatchTransactionType.Authorization,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Authorization',
                  },
                  {
                    kData: BatchTransactionType.PostAuthorization,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_PostAuthorization',
                  },
                  {
                    kData: BatchTransactionType.ForceAuthorization,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_ForceAuthorization',
                  },
                  {
                    kData: BatchTransactionType.Adjust,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Adjust',
                  },
                  {
                    kData: BatchTransactionType.Withdrawal,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Withdrawal',
                  },
                  {
                    kData: BatchTransactionType.Activate,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Activate',
                  },
                  {
                    kData: BatchTransactionType.Issue,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Issue',
                  },
                  {
                    kData: BatchTransactionType.Reload,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Reload',
                  },
                  {
                    kData: BatchTransactionType.Cashout,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Cashout',
                  },
                  {
                    kData: BatchTransactionType.Deactivate,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Deactivate',
                  },
                  {
                    kData: BatchTransactionType.Replace,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Replace',
                  },
                  {
                    kData: BatchTransactionType.Merge,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Merge',
                  },
                  {
                    kData: BatchTransactionType.ReportLost,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_ReportLost',
                  },
                  {
                    kData: BatchTransactionType.Void,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Void',
                  },
                  {
                    kData: BatchTransactionType.VoidSale,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_VoidSale',
                  },
                  {
                    kData: BatchTransactionType.VoidReturn,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_VoidReturn',
                  },
                  {
                    kData: BatchTransactionType.VoidAuthorization,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_VoidAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidPostAuthorization,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_VoidPostAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidForceAuthorization,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_VoidForceAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidWithdrawal,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_VoidWithdrawal',
                  },
                  {
                    kData: BatchTransactionType.Inquiry,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Inquiry',
                  },
                  {
                    kData: BatchTransactionType.Verify,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Verify',
                  },
                  {
                    kData: BatchTransactionType.Reactivate,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Reactivate',
                  },
                  {
                    kData: BatchTransactionType.ForcedIssue,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_ForcedIssue',
                  },
                  {
                    kData: BatchTransactionType.ForcedAdd,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_ForcedAdd',
                  },
                  {
                    kData: BatchTransactionType.Unload,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Unload',
                  },
                  {
                    kData: BatchTransactionType.Renew,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Renew',
                  },
                  {
                    kData: BatchTransactionType.GetConvertDetail,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_GetConvertDetail',
                  },
                  {
                    kData: BatchTransactionType.Convert,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Convert',
                  },
                  {
                    kData: BatchTransactionType.Tokenize,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Tokenize',
                  },
                  {
                    kData: BatchTransactionType.IncrementalAuthorization,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_IncrementalAuthorization',
                  },
                  {
                    kData: BatchTransactionType.BalanceWithLock,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_BalanceWithLock',
                  },
                  {
                    kData: BatchTransactionType.RedemptionWithUnlock,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_RedemptionWithUnlock',
                  },
                  {
                    kData: BatchTransactionType.Rewards,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Rewards',
                  },
                  {
                    kData: BatchTransactionType.Reenter,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Reenter',
                  },
                  {
                    kData: BatchTransactionType.TransactionAdjustment,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_TransactionAdjustment',
                  },
                  {
                    kData: BatchTransactionType.Transfer,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Transfer',
                  },
                  {
                    kData: BatchTransactionType.Finalize,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Finalize',
                  },
                  {
                    kData: BatchTransactionType.Deposit,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Deposit',
                  },
                  {
                    kData: BatchTransactionType.AccountPayment,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_AccountPayment',
                  },
                  {
                    kData: BatchTransactionType.Reversal,
                    kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType_Reversal',
                  },
                ],
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalTransactionDateTime',
                kValue: ' ',
                kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionDateTime',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalTransactionAuthorizationCode',
                kValue: ' ',
                kID: 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionAuthorizationCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
           ];
  }

   static void parseRspBatchDeleteSafFileResponse(BatchDeleteSafFileResponse rsp, List<Map> rspDataSource) {
      rspDataSource.forEach((element) {
          DataItemType itemType = element[kType];
          String id = element[kID];
          switch (itemType) {
              case DataItemType.CellInput:
                element[kValue] = BatchRspData._parseBatchDeleteSafFileResponse(id, rsp);
                break;
              case DataItemType.Group:
                if (element[kBitmapEnable] != null) {
                    element[kBitmapEnable] = true;
                    element[kGroupArrowOpen] = true;
                }
                break;
              case DataItemType.ModelList:
                List<dynamic> map = BatchRspData._parseBatchDeleteSafFileResponse(id, rsp) ?? [];
                element[kData] = ResponseListModelQuery.query(id, map);
                break;
              case DataItemType.Menu:
                element[kValue] = BatchRspData._parseBatchDeleteSafFileResponse(id, rsp);
                break;
              case DataItemType.StringList:
                List<String> tempData = [];
                List<String?> resData = BatchRspData._parseBatchDeleteSafFileResponse(id, rsp) ?? [];
                for (int i = 0; i < resData.length; i++) {
                  String str = resData[i]!;
                  tempData.add(str);
                }
                element[kData] = tempData;
                break;
            case DataItemType.Boolen:
                element[kValue] = BatchRspData._parseBatchDeleteSafFileResponse(id, rsp);
                element[kShow] = true;
                break;
              default:
                break;
           }
        });
  }


   static dynamic _parseBatchDeleteSafFileResponse(String id, BatchDeleteSafFileResponse rsp) {
      dynamic result;
      switch (id) {
         case 'Batch_Response_DeleteSafFileResponse-responseCode':
             result = rsp.responseCode;
             break;
         case 'Batch_Response_DeleteSafFileResponse-responseMessage':
             result = rsp.responseMessage;
             break;
         case 'Batch_Response_DeleteSafFileResponse-safDeletedCount':
             result = rsp.safDeletedCount;
             break;
         case 'Batch_Response_DeleteSafFileResponse-torInformation':
             result = rsp.torInformation;
             break;
         case 'Batch_Response_DeleteSafFileResponse-torInformation_recordType':
             result = rsp.torInformation?.recordType;
             break;
         case 'Batch_Response_DeleteSafFileResponse-torInformation_reversalTimeStamp':
             result = rsp.torInformation?.reversalTimeStamp;
             break;
         case 'Batch_Response_DeleteSafFileResponse-torInformation_hostResponseCode':
             result = rsp.torInformation?.hostResponseCode;
             break;
         case 'Batch_Response_DeleteSafFileResponse-torInformation_hostResponseMessage':
             result = rsp.torInformation?.hostResponseMessage;
             break;
         case 'Batch_Response_DeleteSafFileResponse-torInformation_hostReferenceNumber':
             result = rsp.torInformation?.hostReferenceNumber;
             break;
         case 'Batch_Response_DeleteSafFileResponse-torInformation_gatewayTransactionId':
             result = rsp.torInformation?.gatewayTransactionId;
             break;
         case 'Batch_Response_DeleteSafFileResponse-torInformation_originalAmount':
             result = rsp.torInformation?.originalAmount;
             break;
         case 'Batch_Response_DeleteSafFileResponse-torInformation_maskedPan':
             result = rsp.torInformation?.maskedPan;
             break;
         case 'Batch_Response_DeleteSafFileResponse-torInformation_batchNumber':
             result = rsp.torInformation?.batchNumber;
             break;
         case 'Batch_Response_DeleteSafFileResponse-torInformation_reversalAuthorizationCode':
             result = rsp.torInformation?.reversalAuthorizationCode;
             break;
         case 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionType':
             result = rsp.torInformation?.originalTransactionType;
             break;
         case 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionDateTime':
             result = rsp.torInformation?.originalTransactionDateTime;
             break;
         case 'Batch_Response_DeleteSafFileResponse-torInformation_originalTransactionAuthorizationCode':
             result = rsp.torInformation?.originalTransactionAuthorizationCode;
             break;
         default:
             break;
     }
     return result;
 }

  static List<Map> batchClearData() {
      return [
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'responseCode',
                kValue: ' ',
                kID: 'Batch_Response_BatchClearResponse-responseCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'responseMessage',
                kValue: ' ',
                kID: 'Batch_Response_BatchClearResponse-responseMessage',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kGroupArrowOpen: true,
                kName: 'torInformation',
                kValue: '',
                kID: 'Batch_Response_BatchClearResponse-torInformation',
                kType: DataItemType.Group,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'recordType',
                kID: 'Batch_Response_BatchClearResponse-torInformation_recordType',
                kMenuID: 'Batch_Response_BatchClearResponse-torInformation_recordType_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchTorRecordType.NotSet,
                kData: [
                  {
                    kData: BatchTorRecordType.NotSet,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_recordType_NotSet',
                  },
                  {
                    kData: BatchTorRecordType.ReversalRecord,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_recordType_ReversalRecord',
                  },
                  {
                    kData: BatchTorRecordType.EmvSecondGacReversal,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_recordType_EmvSecondGacReversal',
                  },
                ],
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'reversalTimeStamp',
                kValue: ' ',
                kID: 'Batch_Response_BatchClearResponse-torInformation_reversalTimeStamp',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostResponseCode',
                kValue: ' ',
                kID: 'Batch_Response_BatchClearResponse-torInformation_hostResponseCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostResponseMessage',
                kValue: ' ',
                kID: 'Batch_Response_BatchClearResponse-torInformation_hostResponseMessage',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostReferenceNumber',
                kValue: ' ',
                kID: 'Batch_Response_BatchClearResponse-torInformation_hostReferenceNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'gatewayTransactionId',
                kValue: ' ',
                kID: 'Batch_Response_BatchClearResponse-torInformation_gatewayTransactionId',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalAmount',
                kValue: ' ',
                kID: 'Batch_Response_BatchClearResponse-torInformation_originalAmount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'maskedPan',
                kValue: ' ',
                kID: 'Batch_Response_BatchClearResponse-torInformation_maskedPan',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'batchNumber',
                kValue: ' ',
                kID: 'Batch_Response_BatchClearResponse-torInformation_batchNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'reversalAuthorizationCode',
                kValue: ' ',
                kID: 'Batch_Response_BatchClearResponse-torInformation_reversalAuthorizationCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalTransactionType',
                kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType',
                kMenuID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchTransactionType.NotSet,
                kData: [
                  {
                    kData: BatchTransactionType.NotSet,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_NotSet',
                  },
                  {
                    kData: BatchTransactionType.Unknown,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Unknown',
                  },
                  {
                    kData: BatchTransactionType.Sale,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Sale',
                  },
                  {
                    kData: BatchTransactionType.Return,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Return',
                  },
                  {
                    kData: BatchTransactionType.Authorization,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Authorization',
                  },
                  {
                    kData: BatchTransactionType.PostAuthorization,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_PostAuthorization',
                  },
                  {
                    kData: BatchTransactionType.ForceAuthorization,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_ForceAuthorization',
                  },
                  {
                    kData: BatchTransactionType.Adjust,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Adjust',
                  },
                  {
                    kData: BatchTransactionType.Withdrawal,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Withdrawal',
                  },
                  {
                    kData: BatchTransactionType.Activate,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Activate',
                  },
                  {
                    kData: BatchTransactionType.Issue,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Issue',
                  },
                  {
                    kData: BatchTransactionType.Reload,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Reload',
                  },
                  {
                    kData: BatchTransactionType.Cashout,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Cashout',
                  },
                  {
                    kData: BatchTransactionType.Deactivate,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Deactivate',
                  },
                  {
                    kData: BatchTransactionType.Replace,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Replace',
                  },
                  {
                    kData: BatchTransactionType.Merge,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Merge',
                  },
                  {
                    kData: BatchTransactionType.ReportLost,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_ReportLost',
                  },
                  {
                    kData: BatchTransactionType.Void,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Void',
                  },
                  {
                    kData: BatchTransactionType.VoidSale,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_VoidSale',
                  },
                  {
                    kData: BatchTransactionType.VoidReturn,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_VoidReturn',
                  },
                  {
                    kData: BatchTransactionType.VoidAuthorization,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_VoidAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidPostAuthorization,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_VoidPostAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidForceAuthorization,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_VoidForceAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidWithdrawal,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_VoidWithdrawal',
                  },
                  {
                    kData: BatchTransactionType.Inquiry,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Inquiry',
                  },
                  {
                    kData: BatchTransactionType.Verify,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Verify',
                  },
                  {
                    kData: BatchTransactionType.Reactivate,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Reactivate',
                  },
                  {
                    kData: BatchTransactionType.ForcedIssue,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_ForcedIssue',
                  },
                  {
                    kData: BatchTransactionType.ForcedAdd,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_ForcedAdd',
                  },
                  {
                    kData: BatchTransactionType.Unload,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Unload',
                  },
                  {
                    kData: BatchTransactionType.Renew,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Renew',
                  },
                  {
                    kData: BatchTransactionType.GetConvertDetail,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_GetConvertDetail',
                  },
                  {
                    kData: BatchTransactionType.Convert,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Convert',
                  },
                  {
                    kData: BatchTransactionType.Tokenize,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Tokenize',
                  },
                  {
                    kData: BatchTransactionType.IncrementalAuthorization,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_IncrementalAuthorization',
                  },
                  {
                    kData: BatchTransactionType.BalanceWithLock,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_BalanceWithLock',
                  },
                  {
                    kData: BatchTransactionType.RedemptionWithUnlock,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_RedemptionWithUnlock',
                  },
                  {
                    kData: BatchTransactionType.Rewards,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Rewards',
                  },
                  {
                    kData: BatchTransactionType.Reenter,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Reenter',
                  },
                  {
                    kData: BatchTransactionType.TransactionAdjustment,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_TransactionAdjustment',
                  },
                  {
                    kData: BatchTransactionType.Transfer,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Transfer',
                  },
                  {
                    kData: BatchTransactionType.Finalize,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Finalize',
                  },
                  {
                    kData: BatchTransactionType.Deposit,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Deposit',
                  },
                  {
                    kData: BatchTransactionType.AccountPayment,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_AccountPayment',
                  },
                  {
                    kData: BatchTransactionType.Reversal,
                    kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType_Reversal',
                  },
                ],
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalTransactionDateTime',
                kValue: ' ',
                kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionDateTime',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalTransactionAuthorizationCode',
                kValue: ' ',
                kID: 'Batch_Response_BatchClearResponse-torInformation_originalTransactionAuthorizationCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
           ];
  }

   static void parseRspBatchBatchClearResponse(BatchBatchClearResponse rsp, List<Map> rspDataSource) {
      rspDataSource.forEach((element) {
          DataItemType itemType = element[kType];
          String id = element[kID];
          switch (itemType) {
              case DataItemType.CellInput:
                element[kValue] = BatchRspData._parseBatchBatchClearResponse(id, rsp);
                break;
              case DataItemType.Group:
                if (element[kBitmapEnable] != null) {
                    element[kBitmapEnable] = true;
                    element[kGroupArrowOpen] = true;
                }
                break;
              case DataItemType.ModelList:
                List<dynamic> map = BatchRspData._parseBatchBatchClearResponse(id, rsp) ?? [];
                element[kData] = ResponseListModelQuery.query(id, map);
                break;
              case DataItemType.Menu:
                element[kValue] = BatchRspData._parseBatchBatchClearResponse(id, rsp);
                break;
              case DataItemType.StringList:
                List<String> tempData = [];
                List<String?> resData = BatchRspData._parseBatchBatchClearResponse(id, rsp) ?? [];
                for (int i = 0; i < resData.length; i++) {
                  String str = resData[i]!;
                  tempData.add(str);
                }
                element[kData] = tempData;
                break;
            case DataItemType.Boolen:
                element[kValue] = BatchRspData._parseBatchBatchClearResponse(id, rsp);
                element[kShow] = true;
                break;
              default:
                break;
           }
        });
  }


   static dynamic _parseBatchBatchClearResponse(String id, BatchBatchClearResponse rsp) {
      dynamic result;
      switch (id) {
         case 'Batch_Response_BatchClearResponse-responseCode':
             result = rsp.responseCode;
             break;
         case 'Batch_Response_BatchClearResponse-responseMessage':
             result = rsp.responseMessage;
             break;
         case 'Batch_Response_BatchClearResponse-torInformation':
             result = rsp.torInformation;
             break;
         case 'Batch_Response_BatchClearResponse-torInformation_recordType':
             result = rsp.torInformation?.recordType;
             break;
         case 'Batch_Response_BatchClearResponse-torInformation_reversalTimeStamp':
             result = rsp.torInformation?.reversalTimeStamp;
             break;
         case 'Batch_Response_BatchClearResponse-torInformation_hostResponseCode':
             result = rsp.torInformation?.hostResponseCode;
             break;
         case 'Batch_Response_BatchClearResponse-torInformation_hostResponseMessage':
             result = rsp.torInformation?.hostResponseMessage;
             break;
         case 'Batch_Response_BatchClearResponse-torInformation_hostReferenceNumber':
             result = rsp.torInformation?.hostReferenceNumber;
             break;
         case 'Batch_Response_BatchClearResponse-torInformation_gatewayTransactionId':
             result = rsp.torInformation?.gatewayTransactionId;
             break;
         case 'Batch_Response_BatchClearResponse-torInformation_originalAmount':
             result = rsp.torInformation?.originalAmount;
             break;
         case 'Batch_Response_BatchClearResponse-torInformation_maskedPan':
             result = rsp.torInformation?.maskedPan;
             break;
         case 'Batch_Response_BatchClearResponse-torInformation_batchNumber':
             result = rsp.torInformation?.batchNumber;
             break;
         case 'Batch_Response_BatchClearResponse-torInformation_reversalAuthorizationCode':
             result = rsp.torInformation?.reversalAuthorizationCode;
             break;
         case 'Batch_Response_BatchClearResponse-torInformation_originalTransactionType':
             result = rsp.torInformation?.originalTransactionType;
             break;
         case 'Batch_Response_BatchClearResponse-torInformation_originalTransactionDateTime':
             result = rsp.torInformation?.originalTransactionDateTime;
             break;
         case 'Batch_Response_BatchClearResponse-torInformation_originalTransactionAuthorizationCode':
             result = rsp.torInformation?.originalTransactionAuthorizationCode;
             break;
         default:
             break;
     }
     return result;
 }

  static List<Map> purgeBatchData() {
      return [
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'responseCode',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-responseCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'responseMessage',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-responseMessage',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kGroupArrowOpen: true,
                kName: 'hostInformation',
                kValue: '',
                kID: 'Batch_Response_PurgeBatchResponse-hostInformation',
                kType: DataItemType.Group,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostResponseCode',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-hostInformation_hostResponseCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostResponseMessage',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-hostInformation_hostResponseMessage',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'authorizationCode',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-hostInformation_authorizationCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostReferenceNumber',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-hostInformation_hostReferenceNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'traceNumber',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-hostInformation_traceNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'batchNumber',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-hostInformation_batchNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'transactionIdentifier',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-hostInformation_transactionIdentifier',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'gatewayTransactionId',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-hostInformation_gatewayTransactionId',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostDetailedMessage',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-hostInformation_hostDetailedMessage',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'transactionIntegrityClass',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-hostInformation_transactionIntegrityClass',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'retrievalReferenceNumber',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-hostInformation_retrievalReferenceNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'issuerResponseCode',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-hostInformation_issuerResponseCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'paymentAccountReferenceId',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-hostInformation_paymentAccountReferenceId',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'lineNumber',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-lineNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'linesMessage',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-linesMessage',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'timeStamp',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-timeStamp',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'tid',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-tid',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'mid',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-mid',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kGroupArrowOpen: true,
                kName: 'torInformation',
                kValue: '',
                kID: 'Batch_Response_PurgeBatchResponse-torInformation',
                kType: DataItemType.Group,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'recordType',
                kID: 'Batch_Response_PurgeBatchResponse-torInformation_recordType',
                kMenuID: 'Batch_Response_PurgeBatchResponse-torInformation_recordType_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchTorRecordType.NotSet,
                kData: [
                  {
                    kData: BatchTorRecordType.NotSet,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_recordType_NotSet',
                  },
                  {
                    kData: BatchTorRecordType.ReversalRecord,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_recordType_ReversalRecord',
                  },
                  {
                    kData: BatchTorRecordType.EmvSecondGacReversal,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_recordType_EmvSecondGacReversal',
                  },
                ],
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'reversalTimeStamp',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-torInformation_reversalTimeStamp',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostResponseCode',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-torInformation_hostResponseCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostResponseMessage',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-torInformation_hostResponseMessage',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostReferenceNumber',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-torInformation_hostReferenceNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'gatewayTransactionId',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-torInformation_gatewayTransactionId',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalAmount',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalAmount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'maskedPan',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-torInformation_maskedPan',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'batchNumber',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-torInformation_batchNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'reversalAuthorizationCode',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-torInformation_reversalAuthorizationCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalTransactionType',
                kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType',
                kMenuID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchTransactionType.NotSet,
                kData: [
                  {
                    kData: BatchTransactionType.NotSet,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_NotSet',
                  },
                  {
                    kData: BatchTransactionType.Unknown,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Unknown',
                  },
                  {
                    kData: BatchTransactionType.Sale,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Sale',
                  },
                  {
                    kData: BatchTransactionType.Return,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Return',
                  },
                  {
                    kData: BatchTransactionType.Authorization,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Authorization',
                  },
                  {
                    kData: BatchTransactionType.PostAuthorization,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_PostAuthorization',
                  },
                  {
                    kData: BatchTransactionType.ForceAuthorization,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_ForceAuthorization',
                  },
                  {
                    kData: BatchTransactionType.Adjust,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Adjust',
                  },
                  {
                    kData: BatchTransactionType.Withdrawal,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Withdrawal',
                  },
                  {
                    kData: BatchTransactionType.Activate,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Activate',
                  },
                  {
                    kData: BatchTransactionType.Issue,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Issue',
                  },
                  {
                    kData: BatchTransactionType.Reload,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Reload',
                  },
                  {
                    kData: BatchTransactionType.Cashout,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Cashout',
                  },
                  {
                    kData: BatchTransactionType.Deactivate,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Deactivate',
                  },
                  {
                    kData: BatchTransactionType.Replace,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Replace',
                  },
                  {
                    kData: BatchTransactionType.Merge,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Merge',
                  },
                  {
                    kData: BatchTransactionType.ReportLost,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_ReportLost',
                  },
                  {
                    kData: BatchTransactionType.Void,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Void',
                  },
                  {
                    kData: BatchTransactionType.VoidSale,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_VoidSale',
                  },
                  {
                    kData: BatchTransactionType.VoidReturn,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_VoidReturn',
                  },
                  {
                    kData: BatchTransactionType.VoidAuthorization,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_VoidAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidPostAuthorization,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_VoidPostAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidForceAuthorization,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_VoidForceAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidWithdrawal,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_VoidWithdrawal',
                  },
                  {
                    kData: BatchTransactionType.Inquiry,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Inquiry',
                  },
                  {
                    kData: BatchTransactionType.Verify,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Verify',
                  },
                  {
                    kData: BatchTransactionType.Reactivate,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Reactivate',
                  },
                  {
                    kData: BatchTransactionType.ForcedIssue,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_ForcedIssue',
                  },
                  {
                    kData: BatchTransactionType.ForcedAdd,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_ForcedAdd',
                  },
                  {
                    kData: BatchTransactionType.Unload,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Unload',
                  },
                  {
                    kData: BatchTransactionType.Renew,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Renew',
                  },
                  {
                    kData: BatchTransactionType.GetConvertDetail,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_GetConvertDetail',
                  },
                  {
                    kData: BatchTransactionType.Convert,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Convert',
                  },
                  {
                    kData: BatchTransactionType.Tokenize,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Tokenize',
                  },
                  {
                    kData: BatchTransactionType.IncrementalAuthorization,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_IncrementalAuthorization',
                  },
                  {
                    kData: BatchTransactionType.BalanceWithLock,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_BalanceWithLock',
                  },
                  {
                    kData: BatchTransactionType.RedemptionWithUnlock,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_RedemptionWithUnlock',
                  },
                  {
                    kData: BatchTransactionType.Rewards,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Rewards',
                  },
                  {
                    kData: BatchTransactionType.Reenter,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Reenter',
                  },
                  {
                    kData: BatchTransactionType.TransactionAdjustment,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_TransactionAdjustment',
                  },
                  {
                    kData: BatchTransactionType.Transfer,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Transfer',
                  },
                  {
                    kData: BatchTransactionType.Finalize,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Finalize',
                  },
                  {
                    kData: BatchTransactionType.Deposit,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Deposit',
                  },
                  {
                    kData: BatchTransactionType.AccountPayment,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_AccountPayment',
                  },
                  {
                    kData: BatchTransactionType.Reversal,
                    kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType_Reversal',
                  },
                ],
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalTransactionDateTime',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionDateTime',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalTransactionAuthorizationCode',
                kValue: ' ',
                kID: 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionAuthorizationCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
           ];
  }

   static void parseRspBatchPurgeBatchResponse(BatchPurgeBatchResponse rsp, List<Map> rspDataSource) {
      rspDataSource.forEach((element) {
          DataItemType itemType = element[kType];
          String id = element[kID];
          switch (itemType) {
              case DataItemType.CellInput:
                element[kValue] = BatchRspData._parseBatchPurgeBatchResponse(id, rsp);
                break;
              case DataItemType.Group:
                if (element[kBitmapEnable] != null) {
                    element[kBitmapEnable] = true;
                    element[kGroupArrowOpen] = true;
                }
                break;
              case DataItemType.ModelList:
                List<dynamic> map = BatchRspData._parseBatchPurgeBatchResponse(id, rsp) ?? [];
                element[kData] = ResponseListModelQuery.query(id, map);
                break;
              case DataItemType.Menu:
                element[kValue] = BatchRspData._parseBatchPurgeBatchResponse(id, rsp);
                break;
              case DataItemType.StringList:
                List<String> tempData = [];
                List<String?> resData = BatchRspData._parseBatchPurgeBatchResponse(id, rsp) ?? [];
                for (int i = 0; i < resData.length; i++) {
                  String str = resData[i]!;
                  tempData.add(str);
                }
                element[kData] = tempData;
                break;
            case DataItemType.Boolen:
                element[kValue] = BatchRspData._parseBatchPurgeBatchResponse(id, rsp);
                element[kShow] = true;
                break;
              default:
                break;
           }
        });
  }


   static dynamic _parseBatchPurgeBatchResponse(String id, BatchPurgeBatchResponse rsp) {
      dynamic result;
      switch (id) {
         case 'Batch_Response_PurgeBatchResponse-responseCode':
             result = rsp.responseCode;
             break;
         case 'Batch_Response_PurgeBatchResponse-responseMessage':
             result = rsp.responseMessage;
             break;
         case 'Batch_Response_PurgeBatchResponse-hostInformation':
             result = rsp.hostInformation;
             break;
         case 'Batch_Response_PurgeBatchResponse-hostInformation_hostResponseCode':
             result = rsp.hostInformation?.hostResponseCode;
             break;
         case 'Batch_Response_PurgeBatchResponse-hostInformation_hostResponseMessage':
             result = rsp.hostInformation?.hostResponseMessage;
             break;
         case 'Batch_Response_PurgeBatchResponse-hostInformation_authorizationCode':
             result = rsp.hostInformation?.authorizationCode;
             break;
         case 'Batch_Response_PurgeBatchResponse-hostInformation_hostReferenceNumber':
             result = rsp.hostInformation?.hostReferenceNumber;
             break;
         case 'Batch_Response_PurgeBatchResponse-hostInformation_traceNumber':
             result = rsp.hostInformation?.traceNumber;
             break;
         case 'Batch_Response_PurgeBatchResponse-hostInformation_batchNumber':
             result = rsp.hostInformation?.batchNumber;
             break;
         case 'Batch_Response_PurgeBatchResponse-hostInformation_transactionIdentifier':
             result = rsp.hostInformation?.transactionIdentifier;
             break;
         case 'Batch_Response_PurgeBatchResponse-hostInformation_gatewayTransactionId':
             result = rsp.hostInformation?.gatewayTransactionId;
             break;
         case 'Batch_Response_PurgeBatchResponse-hostInformation_hostDetailedMessage':
             result = rsp.hostInformation?.hostDetailedMessage;
             break;
         case 'Batch_Response_PurgeBatchResponse-hostInformation_transactionIntegrityClass':
             result = rsp.hostInformation?.transactionIntegrityClass;
             break;
         case 'Batch_Response_PurgeBatchResponse-hostInformation_retrievalReferenceNumber':
             result = rsp.hostInformation?.retrievalReferenceNumber;
             break;
         case 'Batch_Response_PurgeBatchResponse-hostInformation_issuerResponseCode':
             result = rsp.hostInformation?.issuerResponseCode;
             break;
         case 'Batch_Response_PurgeBatchResponse-hostInformation_paymentAccountReferenceId':
             result = rsp.hostInformation?.paymentAccountReferenceId;
             break;
         case 'Batch_Response_PurgeBatchResponse-lineNumber':
             result = rsp.lineNumber;
             break;
         case 'Batch_Response_PurgeBatchResponse-linesMessage':
             result = rsp.linesMessage;
             break;
         case 'Batch_Response_PurgeBatchResponse-timeStamp':
             result = rsp.timeStamp;
             break;
         case 'Batch_Response_PurgeBatchResponse-tid':
             result = rsp.tid;
             break;
         case 'Batch_Response_PurgeBatchResponse-mid':
             result = rsp.mid;
             break;
         case 'Batch_Response_PurgeBatchResponse-torInformation':
             result = rsp.torInformation;
             break;
         case 'Batch_Response_PurgeBatchResponse-torInformation_recordType':
             result = rsp.torInformation?.recordType;
             break;
         case 'Batch_Response_PurgeBatchResponse-torInformation_reversalTimeStamp':
             result = rsp.torInformation?.reversalTimeStamp;
             break;
         case 'Batch_Response_PurgeBatchResponse-torInformation_hostResponseCode':
             result = rsp.torInformation?.hostResponseCode;
             break;
         case 'Batch_Response_PurgeBatchResponse-torInformation_hostResponseMessage':
             result = rsp.torInformation?.hostResponseMessage;
             break;
         case 'Batch_Response_PurgeBatchResponse-torInformation_hostReferenceNumber':
             result = rsp.torInformation?.hostReferenceNumber;
             break;
         case 'Batch_Response_PurgeBatchResponse-torInformation_gatewayTransactionId':
             result = rsp.torInformation?.gatewayTransactionId;
             break;
         case 'Batch_Response_PurgeBatchResponse-torInformation_originalAmount':
             result = rsp.torInformation?.originalAmount;
             break;
         case 'Batch_Response_PurgeBatchResponse-torInformation_maskedPan':
             result = rsp.torInformation?.maskedPan;
             break;
         case 'Batch_Response_PurgeBatchResponse-torInformation_batchNumber':
             result = rsp.torInformation?.batchNumber;
             break;
         case 'Batch_Response_PurgeBatchResponse-torInformation_reversalAuthorizationCode':
             result = rsp.torInformation?.reversalAuthorizationCode;
             break;
         case 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionType':
             result = rsp.torInformation?.originalTransactionType;
             break;
         case 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionDateTime':
             result = rsp.torInformation?.originalTransactionDateTime;
             break;
         case 'Batch_Response_PurgeBatchResponse-torInformation_originalTransactionAuthorizationCode':
             result = rsp.torInformation?.originalTransactionAuthorizationCode;
             break;
         default:
             break;
     }
     return result;
 }

  static List<Map> batchCloseData() {
      return [
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'responseCode',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-responseCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'responseMessage',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-responseMessage',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kGroupArrowOpen: true,
                kName: 'hostInformation',
                kValue: '',
                kID: 'Batch_Response_BatchCloseResponse-hostInformation',
                kType: DataItemType.Group,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostResponseCode',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-hostInformation_hostResponseCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostResponseMessage',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-hostInformation_hostResponseMessage',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'authorizationCode',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-hostInformation_authorizationCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostReferenceNumber',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-hostInformation_hostReferenceNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'traceNumber',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-hostInformation_traceNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'batchNumber',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-hostInformation_batchNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'transactionIdentifier',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-hostInformation_transactionIdentifier',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'gatewayTransactionId',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-hostInformation_gatewayTransactionId',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostDetailedMessage',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-hostInformation_hostDetailedMessage',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'transactionIntegrityClass',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-hostInformation_transactionIntegrityClass',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'retrievalReferenceNumber',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-hostInformation_retrievalReferenceNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'issuerResponseCode',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-hostInformation_issuerResponseCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'hostInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'paymentAccountReferenceId',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-hostInformation_paymentAccountReferenceId',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kGroupArrowOpen: true,
                kName: 'totalCount',
                kValue: '',
                kID: 'Batch_Response_BatchCloseResponse-totalCount',
                kType: DataItemType.Group,
                kShow: true,
              },
              {
                kSuperGroupName: 'totalCount',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'creditCount',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-totalCount_creditCount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'totalCount',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'debitCount',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-totalCount_debitCount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'totalCount',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'ebtCount',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-totalCount_ebtCount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'totalCount',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'giftCount',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-totalCount_giftCount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'totalCount',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'loyaltyCount',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-totalCount_loyaltyCount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'totalCount',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'cashCount',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-totalCount_cashCount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'totalCount',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'checkCount',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-totalCount_checkCount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kGroupArrowOpen: true,
                kName: 'totalAmount',
                kValue: '',
                kID: 'Batch_Response_BatchCloseResponse-totalAmount',
                kType: DataItemType.Group,
                kShow: true,
              },
              {
                kSuperGroupName: 'totalAmount',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'creditAmount',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-totalAmount_creditAmount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'totalAmount',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'debitAmount',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-totalAmount_debitAmount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'totalAmount',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'ebtAmount',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-totalAmount_ebtAmount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'totalAmount',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'giftAmount',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-totalAmount_giftAmount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'totalAmount',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'loyaltyAmount',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-totalAmount_loyaltyAmount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'totalAmount',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'cashAmount',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-totalAmount_cashAmount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'totalAmount',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'checkAmount',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-totalAmount_checkAmount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'timeStamp',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-timeStamp',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'tid',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-tid',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'mid',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-mid',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kGroupArrowOpen: true,
                kName: 'multiMerchant',
                kValue: '',
                kID: 'Batch_Response_BatchCloseResponse-multiMerchant',
                kType: DataItemType.Group,
                kShow: true,
              },
              {
                kSuperGroupName: 'multiMerchant',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'multiMerchantId',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-multiMerchant_multiMerchantId',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'multiMerchant',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'multiMerchantName',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-multiMerchant_multiMerchantName',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'failedTransactionNumber',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-failedTransactionNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'failedCount',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-failedCount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'safFailedCount',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-safFailedCount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'safFailedTotal',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-safFailedTotal',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kGroupArrowOpen: true,
                kName: 'torInformation',
                kValue: '',
                kID: 'Batch_Response_BatchCloseResponse-torInformation',
                kType: DataItemType.Group,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'recordType',
                kID: 'Batch_Response_BatchCloseResponse-torInformation_recordType',
                kMenuID: 'Batch_Response_BatchCloseResponse-torInformation_recordType_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchTorRecordType.NotSet,
                kData: [
                  {
                    kData: BatchTorRecordType.NotSet,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_recordType_NotSet',
                  },
                  {
                    kData: BatchTorRecordType.ReversalRecord,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_recordType_ReversalRecord',
                  },
                  {
                    kData: BatchTorRecordType.EmvSecondGacReversal,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_recordType_EmvSecondGacReversal',
                  },
                ],
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'reversalTimeStamp',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-torInformation_reversalTimeStamp',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostResponseCode',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-torInformation_hostResponseCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostResponseMessage',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-torInformation_hostResponseMessage',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostReferenceNumber',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-torInformation_hostReferenceNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'gatewayTransactionId',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-torInformation_gatewayTransactionId',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalAmount',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-torInformation_originalAmount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'maskedPan',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-torInformation_maskedPan',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'batchNumber',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-torInformation_batchNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'reversalAuthorizationCode',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-torInformation_reversalAuthorizationCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalTransactionType',
                kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType',
                kMenuID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchTransactionType.NotSet,
                kData: [
                  {
                    kData: BatchTransactionType.NotSet,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_NotSet',
                  },
                  {
                    kData: BatchTransactionType.Unknown,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Unknown',
                  },
                  {
                    kData: BatchTransactionType.Sale,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Sale',
                  },
                  {
                    kData: BatchTransactionType.Return,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Return',
                  },
                  {
                    kData: BatchTransactionType.Authorization,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Authorization',
                  },
                  {
                    kData: BatchTransactionType.PostAuthorization,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_PostAuthorization',
                  },
                  {
                    kData: BatchTransactionType.ForceAuthorization,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_ForceAuthorization',
                  },
                  {
                    kData: BatchTransactionType.Adjust,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Adjust',
                  },
                  {
                    kData: BatchTransactionType.Withdrawal,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Withdrawal',
                  },
                  {
                    kData: BatchTransactionType.Activate,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Activate',
                  },
                  {
                    kData: BatchTransactionType.Issue,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Issue',
                  },
                  {
                    kData: BatchTransactionType.Reload,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Reload',
                  },
                  {
                    kData: BatchTransactionType.Cashout,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Cashout',
                  },
                  {
                    kData: BatchTransactionType.Deactivate,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Deactivate',
                  },
                  {
                    kData: BatchTransactionType.Replace,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Replace',
                  },
                  {
                    kData: BatchTransactionType.Merge,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Merge',
                  },
                  {
                    kData: BatchTransactionType.ReportLost,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_ReportLost',
                  },
                  {
                    kData: BatchTransactionType.Void,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Void',
                  },
                  {
                    kData: BatchTransactionType.VoidSale,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_VoidSale',
                  },
                  {
                    kData: BatchTransactionType.VoidReturn,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_VoidReturn',
                  },
                  {
                    kData: BatchTransactionType.VoidAuthorization,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_VoidAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidPostAuthorization,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_VoidPostAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidForceAuthorization,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_VoidForceAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidWithdrawal,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_VoidWithdrawal',
                  },
                  {
                    kData: BatchTransactionType.Inquiry,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Inquiry',
                  },
                  {
                    kData: BatchTransactionType.Verify,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Verify',
                  },
                  {
                    kData: BatchTransactionType.Reactivate,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Reactivate',
                  },
                  {
                    kData: BatchTransactionType.ForcedIssue,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_ForcedIssue',
                  },
                  {
                    kData: BatchTransactionType.ForcedAdd,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_ForcedAdd',
                  },
                  {
                    kData: BatchTransactionType.Unload,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Unload',
                  },
                  {
                    kData: BatchTransactionType.Renew,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Renew',
                  },
                  {
                    kData: BatchTransactionType.GetConvertDetail,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_GetConvertDetail',
                  },
                  {
                    kData: BatchTransactionType.Convert,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Convert',
                  },
                  {
                    kData: BatchTransactionType.Tokenize,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Tokenize',
                  },
                  {
                    kData: BatchTransactionType.IncrementalAuthorization,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_IncrementalAuthorization',
                  },
                  {
                    kData: BatchTransactionType.BalanceWithLock,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_BalanceWithLock',
                  },
                  {
                    kData: BatchTransactionType.RedemptionWithUnlock,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_RedemptionWithUnlock',
                  },
                  {
                    kData: BatchTransactionType.Rewards,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Rewards',
                  },
                  {
                    kData: BatchTransactionType.Reenter,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Reenter',
                  },
                  {
                    kData: BatchTransactionType.TransactionAdjustment,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_TransactionAdjustment',
                  },
                  {
                    kData: BatchTransactionType.Transfer,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Transfer',
                  },
                  {
                    kData: BatchTransactionType.Finalize,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Finalize',
                  },
                  {
                    kData: BatchTransactionType.Deposit,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Deposit',
                  },
                  {
                    kData: BatchTransactionType.AccountPayment,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_AccountPayment',
                  },
                  {
                    kData: BatchTransactionType.Reversal,
                    kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType_Reversal',
                  },
                ],
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalTransactionDateTime',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionDateTime',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalTransactionAuthorizationCode',
                kValue: ' ',
                kID: 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionAuthorizationCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
           ];
  }

   static void parseRspBatchBatchCloseResponse(BatchBatchCloseResponse rsp, List<Map> rspDataSource) {
      rspDataSource.forEach((element) {
          DataItemType itemType = element[kType];
          String id = element[kID];
          switch (itemType) {
              case DataItemType.CellInput:
                element[kValue] = BatchRspData._parseBatchBatchCloseResponse(id, rsp);
                break;
              case DataItemType.Group:
                if (element[kBitmapEnable] != null) {
                    element[kBitmapEnable] = true;
                    element[kGroupArrowOpen] = true;
                }
                break;
              case DataItemType.ModelList:
                List<dynamic> map = BatchRspData._parseBatchBatchCloseResponse(id, rsp) ?? [];
                element[kData] = ResponseListModelQuery.query(id, map);
                break;
              case DataItemType.Menu:
                element[kValue] = BatchRspData._parseBatchBatchCloseResponse(id, rsp);
                break;
              case DataItemType.StringList:
                List<String> tempData = [];
                List<String?> resData = BatchRspData._parseBatchBatchCloseResponse(id, rsp) ?? [];
                for (int i = 0; i < resData.length; i++) {
                  String str = resData[i]!;
                  tempData.add(str);
                }
                element[kData] = tempData;
                break;
            case DataItemType.Boolen:
                element[kValue] = BatchRspData._parseBatchBatchCloseResponse(id, rsp);
                element[kShow] = true;
                break;
              default:
                break;
           }
        });
  }


   static dynamic _parseBatchBatchCloseResponse(String id, BatchBatchCloseResponse rsp) {
      dynamic result;
      switch (id) {
         case 'Batch_Response_BatchCloseResponse-responseCode':
             result = rsp.responseCode;
             break;
         case 'Batch_Response_BatchCloseResponse-responseMessage':
             result = rsp.responseMessage;
             break;
         case 'Batch_Response_BatchCloseResponse-hostInformation':
             result = rsp.hostInformation;
             break;
         case 'Batch_Response_BatchCloseResponse-hostInformation_hostResponseCode':
             result = rsp.hostInformation?.hostResponseCode;
             break;
         case 'Batch_Response_BatchCloseResponse-hostInformation_hostResponseMessage':
             result = rsp.hostInformation?.hostResponseMessage;
             break;
         case 'Batch_Response_BatchCloseResponse-hostInformation_authorizationCode':
             result = rsp.hostInformation?.authorizationCode;
             break;
         case 'Batch_Response_BatchCloseResponse-hostInformation_hostReferenceNumber':
             result = rsp.hostInformation?.hostReferenceNumber;
             break;
         case 'Batch_Response_BatchCloseResponse-hostInformation_traceNumber':
             result = rsp.hostInformation?.traceNumber;
             break;
         case 'Batch_Response_BatchCloseResponse-hostInformation_batchNumber':
             result = rsp.hostInformation?.batchNumber;
             break;
         case 'Batch_Response_BatchCloseResponse-hostInformation_transactionIdentifier':
             result = rsp.hostInformation?.transactionIdentifier;
             break;
         case 'Batch_Response_BatchCloseResponse-hostInformation_gatewayTransactionId':
             result = rsp.hostInformation?.gatewayTransactionId;
             break;
         case 'Batch_Response_BatchCloseResponse-hostInformation_hostDetailedMessage':
             result = rsp.hostInformation?.hostDetailedMessage;
             break;
         case 'Batch_Response_BatchCloseResponse-hostInformation_transactionIntegrityClass':
             result = rsp.hostInformation?.transactionIntegrityClass;
             break;
         case 'Batch_Response_BatchCloseResponse-hostInformation_retrievalReferenceNumber':
             result = rsp.hostInformation?.retrievalReferenceNumber;
             break;
         case 'Batch_Response_BatchCloseResponse-hostInformation_issuerResponseCode':
             result = rsp.hostInformation?.issuerResponseCode;
             break;
         case 'Batch_Response_BatchCloseResponse-hostInformation_paymentAccountReferenceId':
             result = rsp.hostInformation?.paymentAccountReferenceId;
             break;
         case 'Batch_Response_BatchCloseResponse-totalCount':
             result = rsp.totalCount;
             break;
         case 'Batch_Response_BatchCloseResponse-totalCount_creditCount':
             result = rsp.totalCount?.creditCount;
             break;
         case 'Batch_Response_BatchCloseResponse-totalCount_debitCount':
             result = rsp.totalCount?.debitCount;
             break;
         case 'Batch_Response_BatchCloseResponse-totalCount_ebtCount':
             result = rsp.totalCount?.ebtCount;
             break;
         case 'Batch_Response_BatchCloseResponse-totalCount_giftCount':
             result = rsp.totalCount?.giftCount;
             break;
         case 'Batch_Response_BatchCloseResponse-totalCount_loyaltyCount':
             result = rsp.totalCount?.loyaltyCount;
             break;
         case 'Batch_Response_BatchCloseResponse-totalCount_cashCount':
             result = rsp.totalCount?.cashCount;
             break;
         case 'Batch_Response_BatchCloseResponse-totalCount_checkCount':
             result = rsp.totalCount?.checkCount;
             break;
         case 'Batch_Response_BatchCloseResponse-totalAmount':
             result = rsp.totalAmount;
             break;
         case 'Batch_Response_BatchCloseResponse-totalAmount_creditAmount':
             result = rsp.totalAmount?.creditAmount;
             break;
         case 'Batch_Response_BatchCloseResponse-totalAmount_debitAmount':
             result = rsp.totalAmount?.debitAmount;
             break;
         case 'Batch_Response_BatchCloseResponse-totalAmount_ebtAmount':
             result = rsp.totalAmount?.ebtAmount;
             break;
         case 'Batch_Response_BatchCloseResponse-totalAmount_giftAmount':
             result = rsp.totalAmount?.giftAmount;
             break;
         case 'Batch_Response_BatchCloseResponse-totalAmount_loyaltyAmount':
             result = rsp.totalAmount?.loyaltyAmount;
             break;
         case 'Batch_Response_BatchCloseResponse-totalAmount_cashAmount':
             result = rsp.totalAmount?.cashAmount;
             break;
         case 'Batch_Response_BatchCloseResponse-totalAmount_checkAmount':
             result = rsp.totalAmount?.checkAmount;
             break;
         case 'Batch_Response_BatchCloseResponse-timeStamp':
             result = rsp.timeStamp;
             break;
         case 'Batch_Response_BatchCloseResponse-tid':
             result = rsp.tid;
             break;
         case 'Batch_Response_BatchCloseResponse-mid':
             result = rsp.mid;
             break;
         case 'Batch_Response_BatchCloseResponse-multiMerchant':
             result = rsp.multiMerchant;
             break;
         case 'Batch_Response_BatchCloseResponse-multiMerchant_multiMerchantId':
             result = rsp.multiMerchant?.multiMerchantId;
             break;
         case 'Batch_Response_BatchCloseResponse-multiMerchant_multiMerchantName':
             result = rsp.multiMerchant?.multiMerchantName;
             break;
         case 'Batch_Response_BatchCloseResponse-failedTransactionNumber':
             result = rsp.failedTransactionNumber;
             break;
         case 'Batch_Response_BatchCloseResponse-failedCount':
             result = rsp.failedCount;
             break;
         case 'Batch_Response_BatchCloseResponse-safFailedCount':
             result = rsp.safFailedCount;
             break;
         case 'Batch_Response_BatchCloseResponse-safFailedTotal':
             result = rsp.safFailedTotal;
             break;
         case 'Batch_Response_BatchCloseResponse-torInformation':
             result = rsp.torInformation;
             break;
         case 'Batch_Response_BatchCloseResponse-torInformation_recordType':
             result = rsp.torInformation?.recordType;
             break;
         case 'Batch_Response_BatchCloseResponse-torInformation_reversalTimeStamp':
             result = rsp.torInformation?.reversalTimeStamp;
             break;
         case 'Batch_Response_BatchCloseResponse-torInformation_hostResponseCode':
             result = rsp.torInformation?.hostResponseCode;
             break;
         case 'Batch_Response_BatchCloseResponse-torInformation_hostResponseMessage':
             result = rsp.torInformation?.hostResponseMessage;
             break;
         case 'Batch_Response_BatchCloseResponse-torInformation_hostReferenceNumber':
             result = rsp.torInformation?.hostReferenceNumber;
             break;
         case 'Batch_Response_BatchCloseResponse-torInformation_gatewayTransactionId':
             result = rsp.torInformation?.gatewayTransactionId;
             break;
         case 'Batch_Response_BatchCloseResponse-torInformation_originalAmount':
             result = rsp.torInformation?.originalAmount;
             break;
         case 'Batch_Response_BatchCloseResponse-torInformation_maskedPan':
             result = rsp.torInformation?.maskedPan;
             break;
         case 'Batch_Response_BatchCloseResponse-torInformation_batchNumber':
             result = rsp.torInformation?.batchNumber;
             break;
         case 'Batch_Response_BatchCloseResponse-torInformation_reversalAuthorizationCode':
             result = rsp.torInformation?.reversalAuthorizationCode;
             break;
         case 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionType':
             result = rsp.torInformation?.originalTransactionType;
             break;
         case 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionDateTime':
             result = rsp.torInformation?.originalTransactionDateTime;
             break;
         case 'Batch_Response_BatchCloseResponse-torInformation_originalTransactionAuthorizationCode':
             result = rsp.torInformation?.originalTransactionAuthorizationCode;
             break;
         default:
             break;
     }
     return result;
 }

  static List<Map> deleteTransactionData() {
      return [
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'responseCode',
                kValue: ' ',
                kID: 'Batch_Response_DeleteTransactionResponse-responseCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'responseMessage',
                kValue: ' ',
                kID: 'Batch_Response_DeleteTransactionResponse-responseMessage',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kGroupArrowOpen: true,
                kName: 'torInformation',
                kValue: '',
                kID: 'Batch_Response_DeleteTransactionResponse-torInformation',
                kType: DataItemType.Group,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'recordType',
                kID: 'Batch_Response_DeleteTransactionResponse-torInformation_recordType',
                kMenuID: 'Batch_Response_DeleteTransactionResponse-torInformation_recordType_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchTorRecordType.NotSet,
                kData: [
                  {
                    kData: BatchTorRecordType.NotSet,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_recordType_NotSet',
                  },
                  {
                    kData: BatchTorRecordType.ReversalRecord,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_recordType_ReversalRecord',
                  },
                  {
                    kData: BatchTorRecordType.EmvSecondGacReversal,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_recordType_EmvSecondGacReversal',
                  },
                ],
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'reversalTimeStamp',
                kValue: ' ',
                kID: 'Batch_Response_DeleteTransactionResponse-torInformation_reversalTimeStamp',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostResponseCode',
                kValue: ' ',
                kID: 'Batch_Response_DeleteTransactionResponse-torInformation_hostResponseCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostResponseMessage',
                kValue: ' ',
                kID: 'Batch_Response_DeleteTransactionResponse-torInformation_hostResponseMessage',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostReferenceNumber',
                kValue: ' ',
                kID: 'Batch_Response_DeleteTransactionResponse-torInformation_hostReferenceNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'gatewayTransactionId',
                kValue: ' ',
                kID: 'Batch_Response_DeleteTransactionResponse-torInformation_gatewayTransactionId',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalAmount',
                kValue: ' ',
                kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalAmount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'maskedPan',
                kValue: ' ',
                kID: 'Batch_Response_DeleteTransactionResponse-torInformation_maskedPan',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'batchNumber',
                kValue: ' ',
                kID: 'Batch_Response_DeleteTransactionResponse-torInformation_batchNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'reversalAuthorizationCode',
                kValue: ' ',
                kID: 'Batch_Response_DeleteTransactionResponse-torInformation_reversalAuthorizationCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalTransactionType',
                kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType',
                kMenuID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchTransactionType.NotSet,
                kData: [
                  {
                    kData: BatchTransactionType.NotSet,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_NotSet',
                  },
                  {
                    kData: BatchTransactionType.Unknown,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Unknown',
                  },
                  {
                    kData: BatchTransactionType.Sale,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Sale',
                  },
                  {
                    kData: BatchTransactionType.Return,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Return',
                  },
                  {
                    kData: BatchTransactionType.Authorization,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Authorization',
                  },
                  {
                    kData: BatchTransactionType.PostAuthorization,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_PostAuthorization',
                  },
                  {
                    kData: BatchTransactionType.ForceAuthorization,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_ForceAuthorization',
                  },
                  {
                    kData: BatchTransactionType.Adjust,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Adjust',
                  },
                  {
                    kData: BatchTransactionType.Withdrawal,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Withdrawal',
                  },
                  {
                    kData: BatchTransactionType.Activate,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Activate',
                  },
                  {
                    kData: BatchTransactionType.Issue,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Issue',
                  },
                  {
                    kData: BatchTransactionType.Reload,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Reload',
                  },
                  {
                    kData: BatchTransactionType.Cashout,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Cashout',
                  },
                  {
                    kData: BatchTransactionType.Deactivate,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Deactivate',
                  },
                  {
                    kData: BatchTransactionType.Replace,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Replace',
                  },
                  {
                    kData: BatchTransactionType.Merge,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Merge',
                  },
                  {
                    kData: BatchTransactionType.ReportLost,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_ReportLost',
                  },
                  {
                    kData: BatchTransactionType.Void,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Void',
                  },
                  {
                    kData: BatchTransactionType.VoidSale,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_VoidSale',
                  },
                  {
                    kData: BatchTransactionType.VoidReturn,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_VoidReturn',
                  },
                  {
                    kData: BatchTransactionType.VoidAuthorization,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_VoidAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidPostAuthorization,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_VoidPostAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidForceAuthorization,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_VoidForceAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidWithdrawal,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_VoidWithdrawal',
                  },
                  {
                    kData: BatchTransactionType.Inquiry,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Inquiry',
                  },
                  {
                    kData: BatchTransactionType.Verify,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Verify',
                  },
                  {
                    kData: BatchTransactionType.Reactivate,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Reactivate',
                  },
                  {
                    kData: BatchTransactionType.ForcedIssue,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_ForcedIssue',
                  },
                  {
                    kData: BatchTransactionType.ForcedAdd,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_ForcedAdd',
                  },
                  {
                    kData: BatchTransactionType.Unload,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Unload',
                  },
                  {
                    kData: BatchTransactionType.Renew,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Renew',
                  },
                  {
                    kData: BatchTransactionType.GetConvertDetail,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_GetConvertDetail',
                  },
                  {
                    kData: BatchTransactionType.Convert,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Convert',
                  },
                  {
                    kData: BatchTransactionType.Tokenize,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Tokenize',
                  },
                  {
                    kData: BatchTransactionType.IncrementalAuthorization,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_IncrementalAuthorization',
                  },
                  {
                    kData: BatchTransactionType.BalanceWithLock,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_BalanceWithLock',
                  },
                  {
                    kData: BatchTransactionType.RedemptionWithUnlock,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_RedemptionWithUnlock',
                  },
                  {
                    kData: BatchTransactionType.Rewards,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Rewards',
                  },
                  {
                    kData: BatchTransactionType.Reenter,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Reenter',
                  },
                  {
                    kData: BatchTransactionType.TransactionAdjustment,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_TransactionAdjustment',
                  },
                  {
                    kData: BatchTransactionType.Transfer,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Transfer',
                  },
                  {
                    kData: BatchTransactionType.Finalize,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Finalize',
                  },
                  {
                    kData: BatchTransactionType.Deposit,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Deposit',
                  },
                  {
                    kData: BatchTransactionType.AccountPayment,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_AccountPayment',
                  },
                  {
                    kData: BatchTransactionType.Reversal,
                    kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType_Reversal',
                  },
                ],
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalTransactionDateTime',
                kValue: ' ',
                kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionDateTime',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalTransactionAuthorizationCode',
                kValue: ' ',
                kID: 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionAuthorizationCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
           ];
  }

   static void parseRspBatchDeleteTransactionResponse(BatchDeleteTransactionResponse rsp, List<Map> rspDataSource) {
      rspDataSource.forEach((element) {
          DataItemType itemType = element[kType];
          String id = element[kID];
          switch (itemType) {
              case DataItemType.CellInput:
                element[kValue] = BatchRspData._parseBatchDeleteTransactionResponse(id, rsp);
                break;
              case DataItemType.Group:
                if (element[kBitmapEnable] != null) {
                    element[kBitmapEnable] = true;
                    element[kGroupArrowOpen] = true;
                }
                break;
              case DataItemType.ModelList:
                List<dynamic> map = BatchRspData._parseBatchDeleteTransactionResponse(id, rsp) ?? [];
                element[kData] = ResponseListModelQuery.query(id, map);
                break;
              case DataItemType.Menu:
                element[kValue] = BatchRspData._parseBatchDeleteTransactionResponse(id, rsp);
                break;
              case DataItemType.StringList:
                List<String> tempData = [];
                List<String?> resData = BatchRspData._parseBatchDeleteTransactionResponse(id, rsp) ?? [];
                for (int i = 0; i < resData.length; i++) {
                  String str = resData[i]!;
                  tempData.add(str);
                }
                element[kData] = tempData;
                break;
            case DataItemType.Boolen:
                element[kValue] = BatchRspData._parseBatchDeleteTransactionResponse(id, rsp);
                element[kShow] = true;
                break;
              default:
                break;
           }
        });
  }


   static dynamic _parseBatchDeleteTransactionResponse(String id, BatchDeleteTransactionResponse rsp) {
      dynamic result;
      switch (id) {
         case 'Batch_Response_DeleteTransactionResponse-responseCode':
             result = rsp.responseCode;
             break;
         case 'Batch_Response_DeleteTransactionResponse-responseMessage':
             result = rsp.responseMessage;
             break;
         case 'Batch_Response_DeleteTransactionResponse-torInformation':
             result = rsp.torInformation;
             break;
         case 'Batch_Response_DeleteTransactionResponse-torInformation_recordType':
             result = rsp.torInformation?.recordType;
             break;
         case 'Batch_Response_DeleteTransactionResponse-torInformation_reversalTimeStamp':
             result = rsp.torInformation?.reversalTimeStamp;
             break;
         case 'Batch_Response_DeleteTransactionResponse-torInformation_hostResponseCode':
             result = rsp.torInformation?.hostResponseCode;
             break;
         case 'Batch_Response_DeleteTransactionResponse-torInformation_hostResponseMessage':
             result = rsp.torInformation?.hostResponseMessage;
             break;
         case 'Batch_Response_DeleteTransactionResponse-torInformation_hostReferenceNumber':
             result = rsp.torInformation?.hostReferenceNumber;
             break;
         case 'Batch_Response_DeleteTransactionResponse-torInformation_gatewayTransactionId':
             result = rsp.torInformation?.gatewayTransactionId;
             break;
         case 'Batch_Response_DeleteTransactionResponse-torInformation_originalAmount':
             result = rsp.torInformation?.originalAmount;
             break;
         case 'Batch_Response_DeleteTransactionResponse-torInformation_maskedPan':
             result = rsp.torInformation?.maskedPan;
             break;
         case 'Batch_Response_DeleteTransactionResponse-torInformation_batchNumber':
             result = rsp.torInformation?.batchNumber;
             break;
         case 'Batch_Response_DeleteTransactionResponse-torInformation_reversalAuthorizationCode':
             result = rsp.torInformation?.reversalAuthorizationCode;
             break;
         case 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionType':
             result = rsp.torInformation?.originalTransactionType;
             break;
         case 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionDateTime':
             result = rsp.torInformation?.originalTransactionDateTime;
             break;
         case 'Batch_Response_DeleteTransactionResponse-torInformation_originalTransactionAuthorizationCode':
             result = rsp.torInformation?.originalTransactionAuthorizationCode;
             break;
         default:
             break;
     }
     return result;
 }

  static List<Map> safUploadData() {
      return [
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'responseCode',
                kValue: ' ',
                kID: 'Batch_Response_SafUploadResponse-responseCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'responseMessage',
                kValue: ' ',
                kID: 'Batch_Response_SafUploadResponse-responseMessage',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'safTotalCount',
                kValue: ' ',
                kID: 'Batch_Response_SafUploadResponse-safTotalCount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'safTotalAmount',
                kValue: ' ',
                kID: 'Batch_Response_SafUploadResponse-safTotalAmount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'timeStamp',
                kValue: ' ',
                kID: 'Batch_Response_SafUploadResponse-timeStamp',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'safUploadedCount',
                kValue: ' ',
                kID: 'Batch_Response_SafUploadResponse-safUploadedCount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'safUploadedAmount',
                kValue: ' ',
                kID: 'Batch_Response_SafUploadResponse-safUploadedAmount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'safFailedCount',
                kValue: ' ',
                kID: 'Batch_Response_SafUploadResponse-safFailedCount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kName: 'safFailedTotal',
                kValue: ' ',
                kID: 'Batch_Response_SafUploadResponse-safFailedTotal',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 1,
                kGroupArrowOpen: true,
                kName: 'torInformation',
                kValue: '',
                kID: 'Batch_Response_SafUploadResponse-torInformation',
                kType: DataItemType.Group,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'recordType',
                kID: 'Batch_Response_SafUploadResponse-torInformation_recordType',
                kMenuID: 'Batch_Response_SafUploadResponse-torInformation_recordType_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchTorRecordType.NotSet,
                kData: [
                  {
                    kData: BatchTorRecordType.NotSet,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_recordType_NotSet',
                  },
                  {
                    kData: BatchTorRecordType.ReversalRecord,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_recordType_ReversalRecord',
                  },
                  {
                    kData: BatchTorRecordType.EmvSecondGacReversal,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_recordType_EmvSecondGacReversal',
                  },
                ],
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'reversalTimeStamp',
                kValue: ' ',
                kID: 'Batch_Response_SafUploadResponse-torInformation_reversalTimeStamp',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostResponseCode',
                kValue: ' ',
                kID: 'Batch_Response_SafUploadResponse-torInformation_hostResponseCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostResponseMessage',
                kValue: ' ',
                kID: 'Batch_Response_SafUploadResponse-torInformation_hostResponseMessage',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'hostReferenceNumber',
                kValue: ' ',
                kID: 'Batch_Response_SafUploadResponse-torInformation_hostReferenceNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'gatewayTransactionId',
                kValue: ' ',
                kID: 'Batch_Response_SafUploadResponse-torInformation_gatewayTransactionId',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalAmount',
                kValue: ' ',
                kID: 'Batch_Response_SafUploadResponse-torInformation_originalAmount',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'maskedPan',
                kValue: ' ',
                kID: 'Batch_Response_SafUploadResponse-torInformation_maskedPan',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'batchNumber',
                kValue: ' ',
                kID: 'Batch_Response_SafUploadResponse-torInformation_batchNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'reversalAuthorizationCode',
                kValue: ' ',
                kID: 'Batch_Response_SafUploadResponse-torInformation_reversalAuthorizationCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalTransactionType',
                kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType',
                kMenuID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchTransactionType.NotSet,
                kData: [
                  {
                    kData: BatchTransactionType.NotSet,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_NotSet',
                  },
                  {
                    kData: BatchTransactionType.Unknown,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Unknown',
                  },
                  {
                    kData: BatchTransactionType.Sale,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Sale',
                  },
                  {
                    kData: BatchTransactionType.Return,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Return',
                  },
                  {
                    kData: BatchTransactionType.Authorization,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Authorization',
                  },
                  {
                    kData: BatchTransactionType.PostAuthorization,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_PostAuthorization',
                  },
                  {
                    kData: BatchTransactionType.ForceAuthorization,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_ForceAuthorization',
                  },
                  {
                    kData: BatchTransactionType.Adjust,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Adjust',
                  },
                  {
                    kData: BatchTransactionType.Withdrawal,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Withdrawal',
                  },
                  {
                    kData: BatchTransactionType.Activate,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Activate',
                  },
                  {
                    kData: BatchTransactionType.Issue,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Issue',
                  },
                  {
                    kData: BatchTransactionType.Reload,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Reload',
                  },
                  {
                    kData: BatchTransactionType.Cashout,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Cashout',
                  },
                  {
                    kData: BatchTransactionType.Deactivate,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Deactivate',
                  },
                  {
                    kData: BatchTransactionType.Replace,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Replace',
                  },
                  {
                    kData: BatchTransactionType.Merge,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Merge',
                  },
                  {
                    kData: BatchTransactionType.ReportLost,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_ReportLost',
                  },
                  {
                    kData: BatchTransactionType.Void,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Void',
                  },
                  {
                    kData: BatchTransactionType.VoidSale,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_VoidSale',
                  },
                  {
                    kData: BatchTransactionType.VoidReturn,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_VoidReturn',
                  },
                  {
                    kData: BatchTransactionType.VoidAuthorization,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_VoidAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidPostAuthorization,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_VoidPostAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidForceAuthorization,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_VoidForceAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidWithdrawal,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_VoidWithdrawal',
                  },
                  {
                    kData: BatchTransactionType.Inquiry,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Inquiry',
                  },
                  {
                    kData: BatchTransactionType.Verify,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Verify',
                  },
                  {
                    kData: BatchTransactionType.Reactivate,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Reactivate',
                  },
                  {
                    kData: BatchTransactionType.ForcedIssue,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_ForcedIssue',
                  },
                  {
                    kData: BatchTransactionType.ForcedAdd,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_ForcedAdd',
                  },
                  {
                    kData: BatchTransactionType.Unload,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Unload',
                  },
                  {
                    kData: BatchTransactionType.Renew,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Renew',
                  },
                  {
                    kData: BatchTransactionType.GetConvertDetail,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_GetConvertDetail',
                  },
                  {
                    kData: BatchTransactionType.Convert,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Convert',
                  },
                  {
                    kData: BatchTransactionType.Tokenize,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Tokenize',
                  },
                  {
                    kData: BatchTransactionType.IncrementalAuthorization,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_IncrementalAuthorization',
                  },
                  {
                    kData: BatchTransactionType.BalanceWithLock,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_BalanceWithLock',
                  },
                  {
                    kData: BatchTransactionType.RedemptionWithUnlock,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_RedemptionWithUnlock',
                  },
                  {
                    kData: BatchTransactionType.Rewards,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Rewards',
                  },
                  {
                    kData: BatchTransactionType.Reenter,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Reenter',
                  },
                  {
                    kData: BatchTransactionType.TransactionAdjustment,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_TransactionAdjustment',
                  },
                  {
                    kData: BatchTransactionType.Transfer,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Transfer',
                  },
                  {
                    kData: BatchTransactionType.Finalize,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Finalize',
                  },
                  {
                    kData: BatchTransactionType.Deposit,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Deposit',
                  },
                  {
                    kData: BatchTransactionType.AccountPayment,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_AccountPayment',
                  },
                  {
                    kData: BatchTransactionType.Reversal,
                    kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType_Reversal',
                  },
                ],
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalTransactionDateTime',
                kValue: ' ',
                kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionDateTime',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'torInformation',
                kTextShowType: 1,
                kEnable: false,
                kLevel: 2,
                kName: 'originalTransactionAuthorizationCode',
                kValue: ' ',
                kID: 'Batch_Response_SafUploadResponse-torInformation_originalTransactionAuthorizationCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
           ];
  }

   static void parseRspBatchSafUploadResponse(BatchSafUploadResponse rsp, List<Map> rspDataSource) {
      rspDataSource.forEach((element) {
          DataItemType itemType = element[kType];
          String id = element[kID];
          switch (itemType) {
              case DataItemType.CellInput:
                element[kValue] = BatchRspData._parseBatchSafUploadResponse(id, rsp);
                break;
              case DataItemType.Group:
                if (element[kBitmapEnable] != null) {
                    element[kBitmapEnable] = true;
                    element[kGroupArrowOpen] = true;
                }
                break;
              case DataItemType.ModelList:
                List<dynamic> map = BatchRspData._parseBatchSafUploadResponse(id, rsp) ?? [];
                element[kData] = ResponseListModelQuery.query(id, map);
                break;
              case DataItemType.Menu:
                element[kValue] = BatchRspData._parseBatchSafUploadResponse(id, rsp);
                break;
              case DataItemType.StringList:
                List<String> tempData = [];
                List<String?> resData = BatchRspData._parseBatchSafUploadResponse(id, rsp) ?? [];
                for (int i = 0; i < resData.length; i++) {
                  String str = resData[i]!;
                  tempData.add(str);
                }
                element[kData] = tempData;
                break;
            case DataItemType.Boolen:
                element[kValue] = BatchRspData._parseBatchSafUploadResponse(id, rsp);
                element[kShow] = true;
                break;
              default:
                break;
           }
        });
  }


   static dynamic _parseBatchSafUploadResponse(String id, BatchSafUploadResponse rsp) {
      dynamic result;
      switch (id) {
         case 'Batch_Response_SafUploadResponse-responseCode':
             result = rsp.responseCode;
             break;
         case 'Batch_Response_SafUploadResponse-responseMessage':
             result = rsp.responseMessage;
             break;
         case 'Batch_Response_SafUploadResponse-safTotalCount':
             result = rsp.safTotalCount;
             break;
         case 'Batch_Response_SafUploadResponse-safTotalAmount':
             result = rsp.safTotalAmount;
             break;
         case 'Batch_Response_SafUploadResponse-timeStamp':
             result = rsp.timeStamp;
             break;
         case 'Batch_Response_SafUploadResponse-safUploadedCount':
             result = rsp.safUploadedCount;
             break;
         case 'Batch_Response_SafUploadResponse-safUploadedAmount':
             result = rsp.safUploadedAmount;
             break;
         case 'Batch_Response_SafUploadResponse-safFailedCount':
             result = rsp.safFailedCount;
             break;
         case 'Batch_Response_SafUploadResponse-safFailedTotal':
             result = rsp.safFailedTotal;
             break;
         case 'Batch_Response_SafUploadResponse-torInformation':
             result = rsp.torInformation;
             break;
         case 'Batch_Response_SafUploadResponse-torInformation_recordType':
             result = rsp.torInformation?.recordType;
             break;
         case 'Batch_Response_SafUploadResponse-torInformation_reversalTimeStamp':
             result = rsp.torInformation?.reversalTimeStamp;
             break;
         case 'Batch_Response_SafUploadResponse-torInformation_hostResponseCode':
             result = rsp.torInformation?.hostResponseCode;
             break;
         case 'Batch_Response_SafUploadResponse-torInformation_hostResponseMessage':
             result = rsp.torInformation?.hostResponseMessage;
             break;
         case 'Batch_Response_SafUploadResponse-torInformation_hostReferenceNumber':
             result = rsp.torInformation?.hostReferenceNumber;
             break;
         case 'Batch_Response_SafUploadResponse-torInformation_gatewayTransactionId':
             result = rsp.torInformation?.gatewayTransactionId;
             break;
         case 'Batch_Response_SafUploadResponse-torInformation_originalAmount':
             result = rsp.torInformation?.originalAmount;
             break;
         case 'Batch_Response_SafUploadResponse-torInformation_maskedPan':
             result = rsp.torInformation?.maskedPan;
             break;
         case 'Batch_Response_SafUploadResponse-torInformation_batchNumber':
             result = rsp.torInformation?.batchNumber;
             break;
         case 'Batch_Response_SafUploadResponse-torInformation_reversalAuthorizationCode':
             result = rsp.torInformation?.reversalAuthorizationCode;
             break;
         case 'Batch_Response_SafUploadResponse-torInformation_originalTransactionType':
             result = rsp.torInformation?.originalTransactionType;
             break;
         case 'Batch_Response_SafUploadResponse-torInformation_originalTransactionDateTime':
             result = rsp.torInformation?.originalTransactionDateTime;
             break;
         case 'Batch_Response_SafUploadResponse-torInformation_originalTransactionAuthorizationCode':
             result = rsp.torInformation?.originalTransactionAuthorizationCode;
             break;
         default:
             break;
     }
     return result;
 }

  static List<Map>? queryDataByString(String string) {
    List tempList = string.split('.');
    if (tempList.length < 2) { return null; }
    String tempStr = tempList[1];
    List<Map> list;
    switch (tempStr) {
      case 'BatchClearRequest':
        list = BatchRspData.batchClearData();
        break;
      case 'PurgeBatchRequest':
        list = BatchRspData.purgeBatchData();
        break;
      case 'ForceBatchCloseRequest':
        list = BatchRspData.forceBatchCloseData();
        break;
      case 'BatchCloseRequest':
        list = BatchRspData.batchCloseData();
        break;
      case 'DeleteTransactionRequest':
        list = BatchRspData.deleteTransactionData();
        break;
      case 'SafUploadRequest':
        list = BatchRspData.safUploadData();
        break;
      case 'DeleteSafFileRequest':
        list = BatchRspData.deleteSafFileData();
        break;
      default:
        list = [];
        break;
    }
    return list;
  }

}
